<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta content="width=device-width,initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
	<meta name="apple-mobile-web-app-capable" content="no" />
	<title>团购列表</title>
    <script src="https://tcsc.oss-cn-hangzhou.aliyuncs.com/static/wechat/frame/mui/js/mui.min.js"></script>
	<link rel="stylesheet" href="https://tcsc.oss-cn-hangzhou.aliyuncs.com/static/wechat/frame/mui/css/mui.min.css">
	<link rel="stylesheet" href="https://tcsc.oss-cn-hangzhou.aliyuncs.com/static/wechat/frame/sui/css/SUI.css">
    <link href="https://tcsc.oss-cn-hangzhou.aliyuncs.com/static/wechat/css/other/app.css" rel="stylesheet" />
	<link rel="stylesheet" href="https://tcsc.oss-cn-hangzhou.aliyuncs.com/static/wechat/css/app.css?v=4">
	<link rel="stylesheet" href="https://tcsc.oss-cn-hangzhou.aliyuncs.com/static/wechat/font/iconfont.css">
    <link rel="stylesheet" href="https://tcsc.oss-cn-hangzhou.aliyuncs.com/static/wechat/frame/swiper/css/swiper.min.css">
    <link rel="stylesheet" href="https://tcsc.oss-cn-hangzhou.aliyuncs.com/static/wechat/css/tcindex.css?">
	<style type="text/css">
        .swiper-container{position: relative;}
        .swiper-container .iconfont{position: absolute;top: 15px;right: 15px;color: #fff;z-index: 100;font-size: 30px;}
	</style>
</head>
<body>
    <div class="swiper-container">
	<i class="iconfont info goto" href="/mobile/active/gbuy_help">&#xe7b9;</i>
        <div class="swiper-wrapper" id="slide">
            {{range .ad}}
            <div class="swiper-slide goto" href="{{.url}}" style="background-image: url({{.pathname}});"></div>
            {{end}}
        </div>
        <div class="swiper-pagination"></div>
    </div>
	<div class="gpSale">
		{{range .gbuy}}
        <dl>
            <dt><img src="{{.product.pathname}}" alt=""></dt>
            <dd>
                <p>{{.product.title}}</p>
                <p>{{range .product.keywords}}<span>{{.}}</span>{{end}}</p>
                <p>
                    <span class="goto" href="/mobile/column/product_content?id={{.pid}}">去参团</span>
                    <span>{{.jnum}}人参团 &yen;<label>{{.price}}</label></span><span>单买价 <s>&yen;{{.product.price}}</s></span>
                </p>
            </dd>
        </dl>
        {{end}}
	</div>
</body>
<script type="text/javascript" src="https://tcsc.oss-cn-hangzhou.aliyuncs.com/static/wechat/frame/swiper/js/swiper.min.js"></script>
{{template "wechat/public/share.html" .}}
<script type="text/javascript">
     var swiper = new Swiper('.swiper-container', {
        pagination: '.swiper-pagination',
        paginationClickable: true,
        loop:true,
        autoplay:3500
    });
     mui('body').on('tap','.goto',function(){
    var u=this.getAttribute('href')
    if(u){
        window.location.href=u
    }
})
</script>
</html>